<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PaypalCheckout.aspx.cs" Inherits="Doctor_PaypalCheckout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Redirecting to PayPal...</title>
</head>
<body>
<form id="Form1" name="Form1" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="color: green">

<input type="hidden" id="business" name="business"  value="john@findadoc.com" />
<!-- This URL has been hard-coded [1 January 2007] :K -->
<input type="hidden" name="notify_url" value="http://www.findadoc.com/doctor/UpdateCheckout.aspx" />
<input type="hidden" name="return" value="<%=Session["strHttp"]%>doctor/CreditCard.aspx?id=<%=bid_id %>" />
<input type="hidden" name="cancel_return" id="cancel_return" value="<%=Session["strHttp"]%>doctor/CreditCard.aspx?id=0" />
<input type="hidden" id="invoice" name="invoice" value="<%=bid_id %>"/> 
<input type="hidden" id="no_note" name="no_note" value="1" /> 
<input type="hidden" id="rm" name="rm" value="2" />
<input type="hidden" id="currency_code" name="currency_code" value="USD" />
<input type="hidden" name="no_shipping" value="1"/>
<input type="hidden" id="page_style" name="page_style" value="FindaDoc" />
<%if (bid_type.ToUpper() == "B")
  { %>
        <input type="hidden" id="cmd" name="cmd" value="_ext-enter"  /> 
        <input type="hidden" id="redirect_cmd" name="redirect_cmd" value="_xclick"  />
        <input type="hidden" id="item_name" name="item_name" value="Bid for Featured Doctor" /> 
        <input type="hidden" id="item_number" name="item_number" value="1" />
        <input type="hidden" id="amount" name="amount" value="200"/>
        <input type="hidden" id="quantity" name="quantity" value="1" />         
        <input type="hidden" id="payment_type" name="payment_type" value="instant" />
<%} 
  else 
  {%>
        <input type="hidden" name="cmd" value="_xclick-subscriptions" />
        
        <input type="hidden" name="item_number" value="FDS<%=bid_id %>" />
        <input type="hidden" name="image_url" value="<%=Session["strHttp"]%>images/find-a-doc.gif" />    
       <% if (bid_type.ToUpper() == "M")
          {%>
        <input type="hidden" name="a1" value="0.00">
        <input type="hidden" name="p1" value="1">
        <input type="hidden" name="t1" value="M">

        <input type="hidden" name="item_name" value="Monthly Featured Doctor (Monthly recurring billing unless canceled)" />
        <input type="hidden" name="a3" value="20.00" />
        <input type="hidden" name="p3" value="1" />
        <input type="hidden" name="t3" value="M" />
        <input type="hidden" name="src" value="1" />
        <input type="hidden" name="sra" value="1" />
       <% }
          else if (bid_type.ToUpper() == "Y") {%>
        <input type="hidden" name="item_name" value="Annually Featured Doctor (Annually recurring billing unless canceled)" />
        <input type="hidden" name="a3" value="200.00" />
        <input type="hidden" name="p3" value="1" />
        <input type="hidden" name="t3" value="Y" />
        <input type="hidden" name="src" value="1" />
        <input type="hidden" name="sra" value="1" />
          <%} %>
        
        <input type="hidden" name="custom" value="<%=Session["userID"]%>" />
  <%} %>
    <br />
    <br />
    <br />
    PayPal is the authorized payment processor for <b>findadoc.com</b>.
     <br />
    <br /> <br />
    <br />
    You are transferred to PayPal to complete checkout in few seconds .....</form>
    <script>
   document.Form1.submit();
		</script>

</body>
</html>
